package first;

import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Hello {
    private HelloWorld helloWorld;
    private SimpleClass simpleClass;

    private List listElement;
    private Map mapElement;
    private Set setElement;

    public Hello(){}

    public Hello(HelloWorld helloWorld) {
        this.helloWorld = helloWorld;
    }

    public Hello(HelloWorld helloWorld,SimpleClass simpleClass) {
        this.helloWorld = helloWorld;
        this.simpleClass = simpleClass;
    }


    public void hello() {
        System.out.println("Hello!");
        helloWorld.getMessage();
        helloWorld.getCountryName();
        if(listElement != null){
            getListElement();
        }else {
            System.out.println("list empty");
        }
        if(mapElement != null) {
            getMapElement();
        }else {
            System.out.println("map empty");
        }
        if(setElement != null){
            getSetElement();
        }else {
            System.out.println("set empty");
        }

        if(simpleClass != null) {
            System.out.println("SimpleClass Name:\t" + simpleClass.getClassName());
        }

    }

    public HelloWorld getHelloWorld() {
        return helloWorld;
    }

    public void setHelloWorld(HelloWorld helloWorld) {
        this.helloWorld = helloWorld;
    }

    public List getListElement() {
        System.out.println("List:\t" + listElement);
        return listElement;
    }

    public void setListElement(List listElement) {
        this.listElement = listElement;
    }

    public Map getMapElement() {
        System.out.println("Map:\t" + mapElement);
        return mapElement;
    }

    public void setMapElement(Map mapElement) {
        this.mapElement = mapElement;
    }

    public Set getSetElement() {
        System.out.println("Set:\t" + setElement);
        return setElement;
    }

    public void setSetElement(Set setElement) {
        this.setElement = setElement;
    }

    public SimpleClass getSimpleClass() {
        return simpleClass;
    }

    public void setSimpleClass(SimpleClass simpleClass) {
        this.simpleClass = simpleClass;
    }
}
